package org.anyin.gitee.cloud.center.base.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.anyin.gitee.cloud.center.base.controller.form.SysRoutePageForm;
import org.anyin.gitee.cloud.center.base.controller.form.SysRouteSaveForm;
import org.anyin.gitee.cloud.center.base.model.SysRouteModel;
import org.anyin.gitee.cloud.center.base.service.dto.SysRouteDTO;
import org.anyin.gitee.cloud.center.base.service.dto.SysRoutePageQueryDTO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface SysRouteConvert {

    SysRouteDTO getSysRouteDTOByForm(SysRouteSaveForm form);

    SysRouteDTO getSysRouteDTOByModel(SysRouteModel model);

    SysRouteModel getSysRouteModel(SysRouteDTO route);

    List<SysRouteDTO> getSysRouteDTOList(List<SysRouteModel> list);

    Page<SysRouteDTO> getSysRouteDTOPage(Page<SysRouteModel> page);

    SysRoutePageQueryDTO getSysRoutePageQueryDTO(SysRoutePageForm form);
}
